TechDraw View/ro

Descriere

Instrumentul Vizualizare adaugă o reprezentare a unuia sau mai multor obiecte pe o pagină de desen. Acesta este blocul de bază al modulului TechDraw. La plupart des autres vues proviennent de NewView.

The TechDraw View tool adds a representation of one or more objects to a Drawing page. introduced in version 1.0: It can create a Projection Group Item (a single view), a Projection Group, a Spreadsheet View, an Arch View, a Symbol or an Image View.

In version 0.21 and below the tool can only create a Part View, which is very similar to a Projection Group Item.

View of a solid box with hidden lines

Usage Projection Group Item and Projection Group

  1. Optionally rotate the 3D view. The camera direction in the 3D view can be used to set the projection direction of the primary view.
  2. Select one or more objects with a DateShape property in the 3D view or Tree view. You can also select Std Parts or Std Groups that contain such objects. When selecting in the 3D view the first selected face can be used to set the projection direction of the primary view. Do not select objects by picking a face in the 3D view if you want to use the current camera direction.
  3. If there are multiple drawing pages in the document: optionally add the desired page to the selection by selecting it in the Tree view.
  4. There are several ways to invoke the tool:
    • Press the Insert View button.
    • Select the TechDraw → TechDraw Views → Insert View option from the menu.
  5. If there are multiple drawing pages in the document, and if no page is displayed in the Main view area and you have not yet selected a page, the Page Chooser dialog box opens:
    1. Select the desired page.
    2. Press the OK button.
  6. The Part View task panel opens. introduced in version 1.0
  7. Optionally adjust the parameters:
    • Scale: select Page, Automatic or Custom. If the last option is selected: enter the scale numerator and denominator.
    • Direction: use the available buttons to adjust the projection direction and rotation of the primary view:
      • The [#.## #.## #.##] button in the center shows the current projection direction. The initial value depends on the Use 3d Camera Direction preference. Press the button to adjust the view direction and rotation manually.
      • Press the , , or button to rotate the projection direction 90° around the horizontal or vertical axis of the view.
      • Press the or button to rotate the view 90° around the projection direction.
      • Press the button to set projection direction of the primary view to the standard front view.
      • Press the button to set it to the first selected face, if available, or else to the current camera direction.
    • Secondary Projections: optionally create secondary projections in addition to the primary view. At least one secondary projection has to be specified for all controls in this section to be displayed.
  8. After changing some parameters pressing the Apply button can be required to update the view(s).
  9. Press the OK button.
  10. A Projection Group Item or, if there are one or more secondary projections, a Projection Group is inserted.

Part View task panel

Usage other view types

introduced in version 1.0

  1. Optionally select a spreadsheet in the Tree view or an Arch section plane in the 3D view or Tree view.
  2. Follow steps 3, 4 and 5 as explained above.
  3. If you have not selected a spreadsheet or an Arch section plane:
    1. A warning dialog box opens.
    2. Check the Do not show this message again checkbox to avoid this dialog box in the future.
    3. Press the OK button.
    4. A file browser opens.
    5. Select an SVG or image file.
  4. A Spreadsheet View, an Arch View, a Symbol or an Image View is inserted.
  5. In case of a Spreadsheet View: adjust the cell range of the view by changing its DateCell Start and DateCell End properties.
  6. In case of a Symbol or Image View: optionally change its DateScale property to adjust its size.

Properties Part View

See also: Property editor.

A Part View, formally a TechDraw::DrawViewPart object, has the following properties:

Data

Base

Cosmetics

HLR Parameters

Projection

View

Base

Broken View

Decoration

Faces

Highlight

Lines

Section Line

(1) Aceste proprietăți sunt comune tuturor tipurilor de vizualizare.

Properties Projection Group Item

See also: Property editor.

A Projection Group Item, formally a TechDraw::DrawProjGroupItem object, is derived from a Part View, formally a TechDraw::DrawViewPart object, and inherits all its properties. It also has the following additional properties:

Data

Base

Properties Projection Group

See TechDraw ProjectionGroup.

Properties Spreadsheet View

See TechDraw SpreadsheetView.

Properties Arch View

See TechDraw ArchView.

Properties Symbol

See TechDraw Symbol.

Properties Image View

See TechDraw Image.

Script

Vederile pot fi adăugate la Pages utilizând Python.

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

A Part View can be created with macros and from the Python console by using the following functions:

import FreeCAD as App

doc = App.ActiveDocument
box = doc.addObject("Part::Box", "Box")

page = doc.addObject("TechDraw::DrawPage", "Page")
template = doc.addObject("TechDraw::DrawSVGTemplate", "Template")
template.Template = App.getResourceDir() + "Mod/TechDraw/Templates/A4_LandscapeTD.svg"
page.Template = template

# Toggle the visibility of the page to ensure its width and height are updated (hack):
page.Visibility = False
page.Visibility = True

view = doc.addObject("TechDraw::DrawViewPart", "View")
page.addView(view)
view.Source = [box]
view.Direction = (0, 0, 1)

view.X = page.PageWidth / 2
view.Y = page.PageHeight / 2

doc.recompute()